<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script data-main="main.js" src="libs/require/require.js"></script>
    <title>权限管理系统</title>
</head>
<body ng-controller="indexCtrl">
	
	<div ng-show="islogin" ng-cloak align="center">
		<form class="m-t" role="form"> 
		    <div class="form-group"> 
		        <input type="text" class="form-control" name="username"
		             id="username" placeholder="请输入用户名admin" ng-model="username" >
		    </div> 
		   <div class="form-group"> 
		       <input type="password" name="password" id="password" 
		              class="form-control" placeholder="请输入密码ilovejava" ng-model="password"> 
		   </div> 
		   <button ng-click="login()" class="btn btn-primary block full-width m-b">登 录</button>
   		   <label>{{msg}}</label>
		</form>
	</div>

	<div ng-show="isindex" ng-cloak>
		<nav class="navbar navbar-default" role="navigation">
	            <div class="navbar-header">
	                <a class="navbar-brand" href="#!/">量化投资平台</a>
	            </div>
	
	            <div class="collapse navbar-collapse navbar-ex1-collapse">
	                <ul class="nav navbar-nav">
	                    <li ng-repeat="a1 in navbar" class="dropdown">
	                        <a href="?{{ a1.name }}" class="dropdown-toggle" data-toggle="dropdown">{{ a1.name }} <b class="caret"></b></a>
	                        <ul class="dropdown-menu menu-top">
	                            <li ng-repeat="a2 in a1.children" class="dropdown-submenu">
	                                <a tabindex="-1" href="#!{{ a2.url }}">{{ a2.name }}</a>
	                                <ul ng-show="a2.children.length>0" class="dropdown-menu">
	                                    <li ng-repeat="a3 in a2.children">
	                                        <a href="#!{{ a3.url }}" >{{ a3.name }}</a>
	                                    </li>
	                                </ul>
	                            </li>
	                        </ul>
	                    </li>
	                </ul>
	            </div>
	        </nav>
	</div>
   	 <div ng-view></div>
	

</body>
</html>